Goto

Collaborating Authors

 handling imbalanced dataset


Tree-based Machine Learning Models for Handling Imbalanced Datasets

#artificialintelligence

Recently, I have been working on a binary classification problem with an imbalanced dataset, where the ratio of positive class to negative class is around 1:4. Imbalanced classification problems are so commonplace that data enthusiasts would encounter them sooner or later. In this post, I will be sharing three tree-based Machine Learning Models that can help handle imbalanced datasets. The dataset that I am going to use to illustrate the effectiveness of algorithms is the credit card fraud dataset from Kaggle. This is an extremely imbalanced dataset: out of 284,807 transactions, there are only 492 frauds. Following the convention, we label the fraud class samples as positive class and normal transactions, negative class.


Handling Imbalanced Datasets in Deep Learning

#artificialintelligence

Not all data is perfect. In fact, you'll be extremely lucky if you ever get a perfectly balanced real-world dataset. Most of the time, your data will have some level of class imbalance, which is when each of your classes have a different number of examples. Before committing time to any potentially lengthy task in a Deep Learning project, it's important to understand why we should do it so that we can be sure it's a valuable investment. Class balancing techniques are only really necessary when we actually care about the minority classes.


Handling imbalanced datasets in machine learning โ€“ Towards Data Science

#artificialintelligence

This post was co-written with Joseph Rocca. Suppose that you are working in a given company and you are asked to create a model that, based on various measurements at your disposal, predicts whether a product is defective or not. You decide to use your favourite classifier, train it on the data and voila: you get a 96.2% accuracy! Your boss is astonished and decides to use your model without any further tests. A few weeks later he enters your office and underlines the uselessness of your model.


Handling imbalanced dataset in supervised learning using family of SMOTE algorithm.

#artificialintelligence

The algorithm adaptively updates the distribution and there are no assumptions made for the underlying distribution of the data. The algorithm uses Euclidean distance for KNN Algorithm. The key difference between ADASYN and SMOTE is that the former uses a density distribution, as a criterion to automatically decide the number of synthetic samples that must be generated for each minority sample by adaptively changing the weights of the different minority samples to compensate for the skewed distributions. The latter generates the same number of synthetic samples for each original minority sample.